package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;import com.lanchetech.entity.Freight;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface FreightMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Freight record);

    int insertSelective(Freight record);

    Freight selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Freight record);

    int updateByPrimaryKey(Freight record);

    List<Freight> findAllPage(PageReq req);

    int updateDeletedById(@Param("updatedDeleted") Byte updatedDeleted, @Param("id") Long id);

    List<Freight> findAll();

    List<Freight> findAllByTenantId(@Param("tenantId")Long tenantId);

    List<Freight> findAllByIds(@Param("ids") List<Long> ids);

    int insert2(Freight record);

    Long countByTenantIdAndDeleted(@Param("tenantId")Long tenantId,@Param("deleted")Byte deleted);




}